Cosimo Cecchi [Tue, 30 Nov 2010 14:04:00 +0000 (15:04 +0100)]
build: order new files alphabetically
Cosimo Cecchi [Tue, 30 Nov 2010 14:03:33 +0000 (15:03 +0100)]
app-chooser: update docs
Cosimo Cecchi [Mon, 29 Nov 2010 17:10:06 +0000 (18:10 +0100)]
app-chooser-online: rework of the online module
- the _get_default() method is now async
- the PackageKit module will return NULL in case PackageKit is not
available in the session bus
- the dummy module doesn't exist anymore
- the dialog won't display the online button in case there's no module
available
Cosimo Cecchi [Mon, 29 Nov 2010 15:10:58 +0000 (16:10 +0100)]
app-chooser-button: tabs to spaces
Cosimo Cecchi [Mon, 29 Nov 2010 15:04:59 +0000 (16:04 +0100)]
app-chooser-button: change the API approach for custom items
Introduce a 'custom-item-activated' on the widget, which behaves
similairly to GtkEntryCompletion::action-activated, i.e. is emitted when
a custom item is chosen from the dropdown list.
Clients can use the name provided when adding the item as a detail for
the signal, to get notified when that specific item is activated, or use
the signal without details to get notifications for all custom items.
Cosimo Cecchi [Mon, 29 Nov 2010 11:25:52 +0000 (12:25 +0100)]
app-chooser-button: include gtk-docs for show-dialog-item
Cosimo Cecchi [Mon, 29 Nov 2010 11:19:18 +0000 (12:19 +0100)]
app-chooser-button: rename GtkAppChooserComboBox -> GtkAppChooserButton
Cosimo Cecchi [Thu, 25 Nov 2010 16:19:00 +0000 (17:19 +0100)]
tests: fix indentation
Cosimo Cecchi [Thu, 25 Nov 2010 16:17:45 +0000 (17:17 +0100)]
app-chooser-combobox: add a method to trigger the GtkAppChooserDialog
It's an optional special item in the combobox, turned off by default.
Matthias Clasen [Wed, 24 Nov 2010 23:32:05 +0000 (18:32 -0500)]
Coding style fixups
This commit adjusts the app chooser code to GTK+ coding style:
- line up prototypes
- remove some excess {}
- remove tabs and trailing whitespace
- add docs
Matthias Clasen [Wed, 24 Nov 2010 21:50:00 +0000 (16:50 -0500)]
Coding style fixes
Matthias Clasen [Wed, 24 Nov 2010 21:47:15 +0000 (16:47 -0500)]
Improve packing in testappchooser
Matthias Clasen [Wed, 24 Nov 2010 21:09:55 +0000 (16:09 -0500)]
Fix reference counting for icons
Cosimo Cecchi [Wed, 24 Nov 2010 18:08:17 +0000 (19:08 +0100)]
app-chooser-combobox: make refresh properly work with custom items
The refresh implementation leaves the custom items in place, and just
refreshes the recommended applications.
Cosimo Cecchi [Wed, 24 Nov 2010 17:45:42 +0000 (18:45 +0100)]
app-chooser-combobox: add an initial implementation
GtkAppChooserCombobox is an implementation of GtkAppChooser inside a
combobox that shows recommended applications for a given content type.
Cosimo Cecchi [Wed, 24 Nov 2010 16:11:17 +0000 (17:11 +0100)]
app-chooser-dialog: add a 'Forget Association' context menu item
Cosimo Cecchi [Wed, 24 Nov 2010 16:04:38 +0000 (17:04 +0100)]
app-chooser-widget: add a 'populate-popup' signal for context menus
This way applications can append items to the menu, which will
automatically show when there's more than one item in it.
Cosimo Cecchi [Wed, 24 Nov 2010 14:50:08 +0000 (15:50 +0100)]
tests: remove radio mode from the test
Cosimo Cecchi [Wed, 24 Nov 2010 14:49:47 +0000 (15:49 +0100)]
Revert "open-with-dialog: remove automatic setting of support-for-type"
This reverts commit
4cfe12129626e8bc1edc87ce9977a1ec71947d7b.
Conflicts:
gtk/gtkappchooserdialog.c
Cosimo Cecchi [Tue, 23 Nov 2010 17:15:28 +0000 (18:15 +0100)]
open-with-widget: make sure to escape the string we use for markup
Cosimo Cecchi [Tue, 23 Nov 2010 17:10:01 +0000 (18:10 +0100)]
Revert "open-with-widget: don't check if the app supports URIs/files"
This reverts commit
b432242078c88b0b8b1762fb5c86424097dd5236.
Cosimo Cecchi [Tue, 23 Nov 2010 16:23:37 +0000 (17:23 +0100)]
app-chooser: rename GtkOpenWith to GtkAppChooser
Cosimo Cecchi [Tue, 23 Nov 2010 15:50:21 +0000 (16:50 +0100)]
open-with-dialog: don't show the 'Show More...' button in all mode
Cosimo Cecchi [Tue, 23 Nov 2010 15:49:30 +0000 (16:49 +0100)]
open-with-widget: don't check if the app supports URIs/files
Because some apps are broken wrt. this property.
Cosimo Cecchi [Tue, 23 Nov 2010 15:48:48 +0000 (16:48 +0100)]
open-with-widget: add a show-default property
Cosimo Cecchi [Tue, 23 Nov 2010 15:47:24 +0000 (16:47 +0100)]
open-with-widget: remove context menu
The widget should not modify itself the application list in any way.
Cosimo Cecchi [Tue, 23 Nov 2010 15:45:43 +0000 (16:45 +0100)]
open-with-widget: remove radio mode
It's not useful for now.
Cosimo Cecchi [Tue, 23 Nov 2010 11:47:44 +0000 (12:47 +0100)]
open-with-pk: don't show an error if no apps are found
gnome-packagekit already shows a message dialog for us.
Cosimo Cecchi [Tue, 23 Nov 2010 11:47:16 +0000 (12:47 +0100)]
open-with-diaolog: set the default text according to the dialog mode
Cosimo Cecchi [Tue, 23 Nov 2010 11:46:34 +0000 (12:46 +0100)]
open-with-widget: let the default fallback text be customizable
We'll set it from the dialog.
Cosimo Cecchi [Mon, 22 Nov 2010 23:53:03 +0000 (00:53 +0100)]
tests: update to the new API
Cosimo Cecchi [Mon, 22 Nov 2010 22:05:59 +0000 (23:05 +0100)]
open-with: move the "Show more applications" button in the dialog
It doesn't really belong in the widget now that we have the new states.
Cosimo Cecchi [Mon, 22 Nov 2010 22:04:00 +0000 (23:04 +0100)]
open-with-dialog: remove automatic setting of support-for-type
We don't want to hardcode any kind of policy in these widgets/dialogs from
now on.
Cosimo Cecchi [Mon, 22 Nov 2010 22:02:57 +0000 (23:02 +0100)]
open-with: add a public _refresh() method
This can be useful now that we're splitting some items from the widget.
Cosimo Cecchi [Mon, 22 Nov 2010 21:59:05 +0000 (22:59 +0100)]
open-with-widget: move to a property-based state
We can enable on-demand one of the three sections (recommended,
fallback, other apps) or use the special ALL property to display everything
uncategorized.
These properties are also easily bindable from outside.
Cosimo Cecchi [Fri, 19 Nov 2010 18:55:24 +0000 (19:55 +0100)]
open-with-dialog: use misc_set_alignment instead of widget_set_halign
Cosimo Cecchi [Fri, 19 Nov 2010 17:33:05 +0000 (18:33 +0100)]
open-with-pk: don't set error if the user cancelled the installation
Cosimo Cecchi [Fri, 19 Nov 2010 17:05:53 +0000 (18:05 +0100)]
open-with-dialog: integrate the online capability
Cosimo Cecchi [Fri, 19 Nov 2010 17:00:55 +0000 (18:00 +0100)]
open-with: add a PackageKit module for online lookup of applications
It's implemented with a GIOExtensionPoint, which has two
implementations:
- a dummy one, which just errors out
- a PackageKit one, which looks up for the specified content type using
the PK DBus API and GDBus.
The PK module is optional, and can be compiled out at configure time.
TODO: a Win32 implementation of the module.
Cosimo Cecchi [Fri, 19 Nov 2010 12:08:20 +0000 (13:08 +0100)]
open-with-widget: don't forget to set the search column
Otherwise find-as-you-type won't work at all.
Cosimo Cecchi [Fri, 19 Nov 2010 12:07:56 +0000 (13:07 +0100)]
open-with-widget: don't sort by name recommended apps
William Jon McCann [Thu, 18 Nov 2010 23:16:08 +0000 (18:16 -0500)]
Using italics here actually introduces more visual clutter than anything
William Jon McCann [Thu, 18 Nov 2010 22:56:02 +0000 (17:56 -0500)]
Use Related instead of the somewhat jargonny fallback
William Jon McCann [Thu, 18 Nov 2010 22:48:33 +0000 (17:48 -0500)]
Use other instead of more
More doesn't make sense when there are no apps in the list and
they aren't just more apps they are apps in another category.
William Jon McCann [Thu, 18 Nov 2010 22:45:47 +0000 (17:45 -0500)]
The colon is a bit unneccessary and looks a bit ugly
William Jon McCann [Thu, 18 Nov 2010 22:43:30 +0000 (17:43 -0500)]
Improve wording of no apps text
William Jon McCann [Thu, 18 Nov 2010 22:32:40 +0000 (17:32 -0500)]
Add some window border to test open with
William Jon McCann [Thu, 18 Nov 2010 22:31:13 +0000 (17:31 -0500)]
Add a default file to open with test
William Jon McCann [Thu, 18 Nov 2010 22:17:23 +0000 (17:17 -0500)]
Simplify title and heading
Cosimo Cecchi [Thu, 18 Nov 2010 17:44:55 +0000 (18:44 +0100)]
open-with-widget: don't set border in the widget box
Cosimo Cecchi [Thu, 18 Nov 2010 17:44:28 +0000 (18:44 +0100)]
open-with-widget: add support for fallback applications
Needs some new API in GIO, which is not yet merged.
Cosimo Cecchi [Thu, 18 Nov 2010 10:56:31 +0000 (11:56 +0100)]
open-with-dialog: remove old declarations
Cosimo Cecchi [Wed, 17 Nov 2010 23:29:18 +0000 (00:29 +0100)]
open-with: remove obsolete code
Cosimo Cecchi [Wed, 17 Nov 2010 23:07:29 +0000 (00:07 +0100)]
open-with-widget: simplify code a bit
Cosimo Cecchi [Wed, 17 Nov 2010 23:06:49 +0000 (00:06 +0100)]
open-with-widget: add a "Show more applications" button
So that we don't always show them all unconditionally in HEADINGS mode.
Cosimo Cecchi [Wed, 17 Nov 2010 23:04:35 +0000 (00:04 +0100)]
open-with-widget: make the list more pretty
Use bigger icons, with bold names and italic descriptions next to them.
Cosimo Cecchi [Wed, 17 Nov 2010 23:02:59 +0000 (00:02 +0100)]
open-with-dialog: don't ever show_all()
As there might be some elements in the widget that we don't want to
always show.
Cosimo Cecchi [Wed, 17 Nov 2010 20:38:22 +0000 (21:38 +0100)]
open-with-widget: add a context menu for recommended entries
We can put "Forget association" there, which removes the application
from the recommended list.
Cosimo Cecchi [Wed, 17 Nov 2010 20:38:05 +0000 (21:38 +0100)]
tests: update to new API
Cosimo Cecchi [Wed, 17 Nov 2010 20:37:09 +0000 (21:37 +0100)]
open-with-dialog: remove the mode from the dialog, we won't use it anymore
According to the new design, the dialog should automatically do the
right thing wrt. app association and default handling.
Cosimo Cecchi [Wed, 17 Nov 2010 18:28:48 +0000 (19:28 +0100)]
open-with: first attempt to split the dialog into a widget + interface
Like GtkFileChooser does; GtkOpenWith is a generic interface, which is
now implemented by both GtkOpenWithDialog and GtkOpenWithWidget (and in
the future also by GtkOpenWithComboBox).
Cosimo Cecchi [Wed, 17 Nov 2010 11:33:59 +0000 (12:33 +0100)]
tests: use new open with mode in the tests
Cosimo Cecchi [Wed, 17 Nov 2010 11:32:20 +0000 (12:32 +0100)]
open-with: turn the show_all_applications boolean into an enum
We have three modes of showing applications now:
- RECOMMENDED mode: shows only the recommended applications
- ALL mode: shows all applications, uncategorized
- HEADINGS: shows headings for recommended and other applications
(default).
Cosimo Cecchi [Tue, 16 Nov 2010 18:24:00 +0000 (19:24 +0100)]
open-with: add docs and integrate with the build GTK+ conventions
Cosimo Cecchi [Tue, 16 Nov 2010 18:23:15 +0000 (19:23 +0100)]
open-with: add gtk_open_with_dialog_get_mode()
Cosimo Cecchi [Tue, 16 Nov 2010 18:21:23 +0000 (19:21 +0100)]
open-with: change the API to make it symmetric for GFile or content-type
It's much more convenient this way.
Cosimo Cecchi [Tue, 16 Nov 2010 17:04:33 +0000 (18:04 +0100)]
tests: rewrite the GtkOpenWithDialog test to make it more interactive
Now you can play with all the options provided by GtkOpenWithDialog API.
Cosimo Cecchi [Tue, 16 Nov 2010 17:02:29 +0000 (18:02 +0100)]
open-with: add misc utility API to the dialog
- _set/get_show_other_applications() is a way to only display
recommended applications in the dialog
- _set/get_show_set_as_default_button() is a way to control the
"Remember this application" checkbox
We also get rid of he "application-selected" signal, in favour of a
_get_selected_application() API inspired by GtkFileChooser.
Cosimo Cecchi [Tue, 16 Nov 2010 14:14:11 +0000 (15:14 +0100)]
open-with: add xpadding to the treeview renderers
We use a GtkCellRenderer hack for this.
Cosimo Cecchi [Tue, 16 Nov 2010 14:13:11 +0000 (15:13 +0100)]
open-with: cope with NULL GAppInfo
It's not that the GAppInfo can actually be NULL, but we use the store to
save headings too, which have no GAppInfo in their rows.
Cosimo Cecchi [Tue, 16 Nov 2010 14:12:17 +0000 (15:12 +0100)]
open-with: don't override the class signal handler, as it's RUN_LAST
And explain why in a comment; basically we want our handler to always
run before client code.
Cosimo Cecchi [Tue, 16 Nov 2010 13:31:49 +0000 (14:31 +0100)]
open-with: don't use gtk_misc_* functions
They're so passe'!
Cosimo Cecchi [Tue, 16 Nov 2010 13:31:03 +0000 (14:31 +0100)]
open-with: add a "show-other-applications" property
This is useful for use-cases where showing a list of all the installed
applications can be confusing. We can control that with a property now.
Cosimo Cecchi [Tue, 16 Nov 2010 12:47:51 +0000 (13:47 +0100)]
open-with: initial implementation of GtkOpenWithDialog
Gheyret T.Kenji [Sat, 20 Nov 2010 10:56:21 +0000 (11:56 +0100)]
Added UG translation
Kjartan Maraas [Sat, 20 Nov 2010 10:48:08 +0000 (11:48 +0100)]
Updated Norwegian bokmål translation
John (J5) Palmieri [Fri, 19 Nov 2010 20:06:40 +0000 (15:06 -0500)]
[gi] add array annotations for DnD related methods
Michael Natterer [Fri, 19 Nov 2010 18:38:48 +0000 (19:38 +0100)]
gtk: remove GtkWidget::size-request
Fixes Bug 633324 - Stop invoking size-request completely
Martin Pitt [Fri, 19 Nov 2010 09:19:32 +0000 (10:19 +0100)]
GtkRadioButtons: Mark group arguments as "allow-none"
In the current introspection data, the various gtk_radio_button_new_*
constructors take an existing group or widget. These all allow passing a NULL
widget or group list, so that it becomes easy to build a radio button list in a
loop (pass in None the first time, and the previously created button in all
other iterations).
Add the missing "allow-none" tag to the introspection data, so that this will
also eventually work for GIR users. NB that it does not actually work for some
constructors yet (like new_with_label_from_widget()) due to
https://bugzilla.gnome.org/show_bug.cgi?id=561264.
https://bugzilla.gnome.org/show_bug.cgi?id=635253
Owen W. Taylor [Sun, 14 Nov 2010 14:38:32 +0000 (09:38 -0500)]
Create the icon pixmap with the system visual
Since what we are doing is turning an icon with alpha into a
no-alpha icon + mask for legacy window managers, it makes more sense
to use the system visual than the window's visual, which might
be ARGB.
https://bugzilla.gnome.org/show_bug.cgi?id=634821
Evan Martin [Fri, 12 Nov 2010 18:43:20 +0000 (10:43 -0800)]
docs: Copy GtkSizeGroup ownership discussion to GtkWindowGroup
The two behave identically, so the text is the same with s/size/window/.
Michael Natterer [Fri, 19 Nov 2010 13:55:47 +0000 (14:55 +0100)]
gtk: draw the frame around the spinbutton's buttons conditionally
(depending on GtkEntry::has-frame)
Javier Jardón [Fri, 19 Nov 2010 08:01:39 +0000 (09:01 +0100)]
configure: define GTK+ version before AC_INIT
So the gtk_version varibale will be defined
Javier Jardón [Fri, 19 Nov 2010 06:47:27 +0000 (07:47 +0100)]
gtkcombobox: Use accessor functions to access GtkTreeViewColumn
Javier Jardón [Fri, 19 Nov 2010 06:47:07 +0000 (07:47 +0100)]
gtktreeview: Use accessor functions to access GtkTreeViewColumn
Javier Jardón [Wed, 20 Oct 2010 15:14:11 +0000 (17:14 +0200)]
gtkentry: move public members to private structure
Javier Jardón [Wed, 20 Oct 2010 17:22:46 +0000 (19:22 +0200)]
gail: Use accessor functions to access GtkEntry
Also, we can't access entry->preedit now. Commented that code until
some gail expert can fix it
Javier Jardón [Thu, 21 Oct 2010 12:06:47 +0000 (14:06 +0200)]
Add _gtk_entry_get_im_context() internal accessor
It's needed by gtktreeview
Javier Jardón [Thu, 21 Oct 2010 11:39:42 +0000 (13:39 +0200)]
gtkcombobox: Do not access GtkEntry internals
It's not needed anymore
Javier Jardón [Tue, 19 Oct 2010 16:46:07 +0000 (18:46 +0200)]
gail: we cant access button->in_button directly now.
Commented some code until some gail expert can fix this.
Javier Jardón [Tue, 19 Oct 2010 00:01:31 +0000 (02:01 +0200)]
Create a private header to access some GtkButton variables
Javier Jardón [Mon, 18 Oct 2010 17:39:19 +0000 (19:39 +0200)]
gtktbutton: Move public members to private structure
Javier Jardón [Fri, 19 Nov 2010 03:44:42 +0000 (04:44 +0100)]
docs: Improve cross-referencing in the migration guide
Javier Jardón [Thu, 18 Nov 2010 16:47:04 +0000 (17:47 +0100)]
gtkplug: Do not leak in gtk_plug_realize()
Indeed, we should check for window->wmclass_name
Reported by Guillaume Desmottes in bug
https://bugzilla.gnome.org/show_bug.cgi?id=635175
Tristan Van Berkom [Thu, 18 Nov 2010 15:53:19 +0000 (00:53 +0900)]
Fixing GtkScrolledWindow inconsistent scrollbar visibility.
Also removing the hack to prevent hangs which is properly fixed by
the preceeding commit.
Tristan Van Berkom [Thu, 18 Nov 2010 15:53:13 +0000 (00:53 +0900)]
Fixing hangs with GtkScrolledWindow
Now gtk_widget_size_allocate() unsets the resize_needed flags
before returning, essentially this means that any widget that
has a queued resize and is allocated before resize time, including
queued resizes from inside a size_allocate() method will be
cancelled.
Michael Natterer [Thu, 18 Nov 2010 00:04:11 +0000 (01:04 +0100)]
gtk: honor entry->has_frame again draw the frame conditionally
when GtkEntry had visible windows, it was never noticed that we always
draw the frame, because the text_area window would cover it if
draw_frame was FALSE.
Michael Natterer [Thu, 18 Nov 2010 00:02:57 +0000 (01:02 +0100)]
gtk: draw the progress only on the text area
so it doesn't extend under GtkSpinButton's buttons.
Javier Jardón [Wed, 17 Nov 2010 22:56:48 +0000 (23:56 +0100)]
demos: Replace size_request by get_preferred_width/height
Javier Jardón [Wed, 17 Nov 2010 21:57:45 +0000 (22:57 +0100)]
gtkoffscreenbox.c: Replace size_request by get_preferred_width/height